package com.scrabbleMaster;

import java.util.Arrays;
import java.util.List;

public class Word {
	private List<Tile> tiles;
	
	public Word(Tile... tiles) {
		this(Arrays.asList(tiles));
	}
	public Word(List<Tile> tiles) {
		this.tiles = tiles;
	}
	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		for (Tile tile : tiles) {
			buffer.append(tile.getChar());
		}
		return buffer.toString();
	}
}
